//
//  HomeViewModel.swift
//  Swift-Tools
//
//  Created by gree on 2020/10/22.
//

import RxSwift
import RxCocoa
import RxDataSources

class HomeViewModel {
    
//    var items: BehaviorRelay<[HomeItem]> = BehaviorRelay<[HomeItem]>(value: [
//        HomeItem(title: "自定义模态进入-present", type: .defalut)
//    ])
    var sections: BehaviorRelay<[TableSection<HomeItem>]> = BehaviorRelay<[TableSection<HomeItem>]>.init(value: [
        .init(header: "第一组", items: [
            .init(title: "自定义模态进入-present", descrition: "文件在Utils-CTPresentationController", type: .defalut)
        ])
    ])
    
}

enum HomeType {
    case defalut
}

struct HomeItem {
    var title: String
    var descrition: String
    var type : HomeType
}

